package com.shanling.shanlingcontroller.persenter.contract;

import com.shanling.shanlingcontroller.bean.LoginBean;
import com.shanling.shanlingcontroller.persenter.BasePersenter;
import com.shanling.shanlingcontroller.ui.BaseView;

/**
 * Created by ch1 on 2019/9/26.
 */

public interface LoginContract {
    interface View extends BaseView {
        void logingSuccess(LoginBean bean);
        void loginFaild(String msg,String errocode);
        void getTokenSuccess(String appToken);
        void getTokenFaild(String msg);
    }
    interface Presenter extends BasePersenter<View> {
        void doLogin(String usname,String password);
        void getToken();
    }
}
